package com.icebartech.base.modules.user.service;

import com.icebartech.base.modules.user.model.AdminUserCore;
import com.icebartech.base.modules.user.model.AdminUserLoginInfo;
import com.icebartech.core.modules.BaseService;

public interface AdminUserLoginInfoService extends BaseService{

	/**
	 * 根据用户名获取对应的登录信息对象
	 * @param loginName
	 * @return
	 */
	public AdminUserLoginInfo findLoginInfoByName(String loginName);
	
	/**
	 * 修改登录账户信息
	 * @param paramMap
	 * @return
	 */ 
	public boolean updateAdnimUserLoginInfoBySelective(AdminUserCore adminUserCore,
			AdminUserLoginInfo adminUserLoginInfo, String roleKey);

	/**
	 * 新增账户信息
	 * @param adminUserCore
	 * @param adminUserLoginInfo
	 * @param roleKey
	 * @return
	 */
	public boolean registerAdminUserLoginInfor(AdminUserCore adminUserCore, AdminUserLoginInfo adminUserLoginInfo,
			String roleKey);
    
    boolean updateUserPassword(Long userId, String pwd);
}
